import React, { useContext } from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import ProductsContextProvider from './contexts/ProductsContext';
import DefaultRoutes from './routes'

// store 管理
// useContext ProductsContextProvider  提供一个value属性

ReactDOM.render(
  <ProductsContextProvider>
    {/* <CartContextProvider> */}
      <DefaultRoutes />
    {/* </CartContextProvider> */}
  </ProductsContextProvider>,
  document.getElementById('root')
)